import { openBlock as a, createElementBlock as d, createElementVNode as e, toDisplayString as f } from "vue";
import "./Logo.vue2.js";
import m from "../_virtual/_plugin-vue_export-helper.js";
const c = {
  __name: "Logo",
  props: {
    // Logo 点击事件
    logoClickHandler: { type: Function, default: () => {
    } },
    // // Logo 跳转采用 vue-router 还是 a，默认采用路由
    // // 使用路由时请采用对象形式
    // // true: vue-router; false: a
    // isRoute: {type: Boolean, default: true},
    // // 路由对象
    // routeObj: {type: Object, default: {}},
    // // a 链接 href
    // aHref: {type: String, default: ''},
    // Logo 容器宽度
    width: { type: String, default: "" },
    // Logo 容器高度
    height: { type: String, default: "" },
    // Logo 背景颜色
    backgroundColor: { type: String, default: "" },
    // Logo 图片 url
    // Logo 图片需要放 public 文件夹下
    // 使用绝对路径 / 开始
    imgUrl: { type: String, default: "" },
    // Logo 图片宽度
    imgWidth: { type: String, default: "4rem" },
    // Logo 图片高度
    imgHeight: { type: String, default: "4rem" },
    // Logo 图片中心放大百分比，默认 100% 原图大小
    imgSize: { type: String, default: "100%" },
    // Logo 图片右外边距，和文字的距离
    imgMarginRight: { type: String, default: "0.35rem" },
    // Logo 旁文字
    fontContent: { type: String, default: "Logo 旁文字" },
    // Logo 旁文字大小
    fontSize: { type: String, default: "1.5rem" },
    // Logo 旁文字样式
    fontStyle: { type: String, default: "" },
    // Logo 旁文字颜色
    fontColor: { type: String, default: "#000" },
    // Logo 旁文字字体
    fontFamily: { type: String, default: "" }
  },
  setup(o) {
    const t = o, n = {
      width: t.width,
      height: t.height,
      backgroundColor: t.backgroundColor
    }, l = {
      backgroundImage: `url(${t.imgUrl})`,
      width: t.imgWidth,
      height: t.imgHeight,
      marginRight: t.imgMarginRight,
      backgroundSize: t.imgSize
    }, g = {
      fontSize: t.fontSize,
      color: t.fontColor,
      fontStyle: t.fontStyle,
      fontFamily: t.fontFamily
    };
    return (y, i) => (a(), d("div", {
      class: "logo-container",
      onClick: i[0] || (i[0] = (...r) => o.logoClickHandler && o.logoClickHandler(...r))
    }, [
      e("div", { style: n }, [
        e("div", {
          class: "logo",
          ref: "logoBox",
          style: l
        }, null, 512),
        e("h1", { style: g }, f(o.fontContent), 1)
      ])
    ]));
  }
}, h = /* @__PURE__ */ m(c, [["__scopeId", "data-v-a353cbbf"]]);
export {
  h as default
};
